import Vue from 'vue'

import Vuex from 'vuex'

Vue.use(Vuex)

const store = () => new Vuex.Store({
    state: {
        currentUserId: '',
        currentActive: '/',
    },
    mutations: {
        setUserId(state, _userId) {
            state.currentUserId = _userId;
        },
        setCurrentActivity(state, currentActive) {
            state.currentActive = currentActive;
        }
    }

})

export default store